# -*- encoding=utf-8 -*-

import datetime

class Feedback(object):

    def __init__(self, id=None, name=None, phone=None, address=None,booktime=None,title=None,\
                 serviceType='wx', content=None, operator=None, operatorId=None, status=0, createTime=None):
        self.id = id
        self.name = name
        self.phone = phone
        self.address = address
        self.booktime = booktime
        self.serviceType = serviceType
        self.content = content
        self.operator = operator
        self.operatorId = operatorId
        self.status = status
        if createTime is not None:
            dateArray = datetime.datetime.utcfromtimestamp(createTime)
            self.createTime = dateArray.strftime("%m-%d %H:%M")
        else:
            self.createTime = ""
        self.title=title





